package com.cyt.wx.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.wx.model.po.WxIndustryCategory;
import com.cyt.wx.model.vo.WxIndustryCategoryVo;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;
import org.springframework.cache.annotation.CacheEvict;

import java.util.List;

/**
 * 官网行业分类-官网行业分类Service层接口类
 *
 * @author congcong tao
 * @date 2019-8-13 9:57:02
 */
public interface WxIndustryCategoryService extends BaseService<WxIndustryCategory> {

    /**
     * 查询对象集合
     *
     * @param wxIndustryCategoryVo 对象
     * @return List 对象集合
     * @author congcong tao
     * @date 2019-8-13 9:57:02
     */
    List<WxIndustryCategory> listExample(WxIndustryCategoryVo wxIndustryCategoryVo);

    /**
     * 分页查询
     *
     * @param wxIndustryCategoryVo 接受参数对象
     * @param pageNum          分页数
     * @param pageSize         每页显示条数
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-13 9:57:02
     */
    ReturnResult page(WxIndustryCategoryVo wxIndustryCategoryVo, int pageNum, int pageSize);

    /**
     * 添加或更新
     *
     * @param wxIndustryCategoryVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-13 9:57:02
     */
    @CacheEvict(value={"cacheWxIndustryCategory"}, allEntries = true)
    ReturnResult addOrUpdate(WxIndustryCategoryVo wxIndustryCategoryVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param wxIndustryCategoryVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-13 9:57:02
     */
    @CacheEvict(value={"cacheWxIndustryCategory"}, allEntries = true)
    ReturnResult remove(WxIndustryCategoryVo wxIndustryCategoryVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param wxIndustryCategoryVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-13 9:57:02
     */
    @CacheEvict(value={"cacheWxIndustryCategory"}, allEntries = true)
    ReturnResult delete(WxIndustryCategoryVo wxIndustryCategoryVo, SysUser sysUser);
}